<!DOCTYPE html>
<html lang="en">
	<head>
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="../lib/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/myCoupon.css" />
		<script src="../lib/js/jquery.min.js"></script>
		
		<script src="../lib/js/bootstrap.min.js"></script>
	</head>
	<body>
		<div class="titleTea">
			<a href="myself.html">
				<span class="glyphicon glyphicon-menu-left"></span>
			</a>
			<h3>我的茶券</h3>
		</div>
		<div class="container">
			<div class="singlecon">
				<div class="con-head borderD">
					<p class="con-id">22584692333</p>
					<span class="con-status">已使用</span>
				</div>
				<div class="con-foot">
					<span>面值：<span id="howMuch">100</span></span>
					<span>发送时间：<span id="date">2017.3.4</span></span>
				</div>
			</div>
		</div>
	</body>
	<script src="../lib/template/template-native.js"></script>
	<script type="text" id="myCon">
		<%for (var i = 0; i < con.sing.length; i++) {%>
			<div class="singlecon">
				<div class="con-head borderD">
					<p class="con-id"><%= con.sing[i].coupon_no%></p>
					<%if (con.sing[i].use_time=='0') {%>
						<span class="con-status">未使用</span>
					<%}else if((ToNumber(con.sing[i].now_time)-ToNumber(con.sing[i].end_time)) > 0){%>
						<span class="con-status">已过期</span>
					<%}else{%>
						<span class="con-status">已使用</span>
					<%}%>
				</div>
				<div class="con-foot">
					<span>使用期限：
				<%if (con.sing[i].end_time==null) {%>
						<span id="phone">
						无期限
						</span>
						<%}else if (con.sing[i].end_time==0) {%>
						<span id="phone">
						无期限
						</span>
						<%}else{%>
						<span id="phone">
						<%=new_date(con.sing[i].end_time) %>
						</span>
						<%}%>
					</span>
					<span>发送时间：<span id="date"><%=new_date(con.sing[i].add_time) %></span></span>
				</div>
			</div>
		<%};%>
	</script>
	<script src="../script/myCoupon.js"></script>
<script src="..//script/rem.js"></script>
</html>